<!--
 $ @Author: liujiajun 45444154+wo1261931780@users.noreply.github.com
 $ @Date: 2022-06-11 21:40:12
 $ @LastEditors: liujiajun 45444154+wo1261931780@users.noreply.github.com
 $ @LastEditTime: 2022-06-11 21:40:19
 $ @FilePath: \st-html.github.io\src\aaa011\a060hover伪类选择器.html
 $ @Description: 1111
 $ @
 $ @Copyright (c) 2022 by liujiajun 45444154+wo1261931780@users.noreply.github.com, All Rights Reserved.
 -->
<!DOCTYPE html>
<html lang="en">

    <head>
        <meta charset="UTF-8">
        <meta http-equiv="X-UA-Compatible"
              content="IE=edge">
        <meta name="viewport"
              content="width=device-width, initial-scale=1.0">
        <title>Document</title>
        <style>
            a:hover {
                color: red;
                text-decoration: none;
                background-color: grey;
            }

            /* 伪类选择器有个问题 */
            /* 如果我设定了标签和对应的属性，那么后续所有的标签会全局生效 */
        </style>
    </head>

    <body>
        <div>我是伪类选择器</div>
        <a href="#">移动过来就会变红</a>

    </body>

</html>